<?php
use  Hyperf\Crontab\Crontab;
    return [
        'enable'=>true,
        'crontab'=>[
            (new Crontab())->setName('coupon_addstatistics')
            ->setRule('1 0 * * *')
            ->setCallback(
                [App\Service\CouponService::class,'addstatistics']
            )
            ->setMemo('红包优惠券统计'),
            (new Crontab())->setName('wechat_data')
                ->setRule('30 0 6 * *')
                ->setCallback([
                \App\Extend\Wx\Wxinfo::class,'daily_summary'
                ])
                ->setMemo('获取微信后台统计数据'),
        ]
    ];